let promise = new Promise((resolve, reject) => {
  console.log('新建了一个Promise');
  resolve();
});

promise.then(() => {
  console.log('进入完成状态1');
}, () => {
  console.log('进入拒绝状态2');
}).catch(() => {
  console.log('进入拒绝状态3')
})

console.log('Hi!')